package com.frank.oj;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author frank
 * @Date 2023/12/2
 */
@Slf4j
@EnableRetry // 开启重试
@EnableScheduling // 开启定时任务
@EnableAsync(proxyTargetClass = true) // 开启异步任务
@EnableDiscoveryClient // 注册到注册中心
@EnableTransactionManagement // 开启事务
@SpringBootApplication
public class DataBackupApplication {
    public static void main(String[] args) {
        SpringApplication.run(DataBackupApplication.class,args);
        log.info("*****DataBackup启动成功*****");
    }
}
